defmodule PhoenixChina.Repo.Migrations.AddCategoryIdToPosts do
  use Ecto.Migration

  def change do
  	alter table(:posts) do
  		add :category_id, references(:categories)
  	end
  	create index(:posts, [:category_id])
  end
end
